package com.woupla.produit;

import java.io.Serializable;
import java.util.List;

import com.woupla.model.Category;

public class ComboFilter implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8337342502351258074L;
	private String name;  
    private Object value; 
    private List<Category> categories;
    private boolean required;
    private boolean visible;
	public ComboFilter(String name, List<Category> categories, boolean required) {
		super();
		this.name = name;
		this.categories = categories;
		this.required = required;
		this.visible =  true;
	}
	/**
	 * @return the required
	 */
	public boolean isRequired() {
		return required;
	}
	/**
	 * @param required the required to set
	 */
	public void setRequired(boolean required) {
		this.required = required;
	}
	/**
	 * @return the categories
	 */
	public List<Category> getCategories() {
		return categories;
	}
	/**
	 * @param categories the categories to set
	 */
	public void setCategories(List<Category> categories) {
		this.categories = categories;
	}
	/**
	 * @return the value
	 */
	public Object getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(Object value) {
		this.value = value;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the visible
	 */
	public boolean isVisible() {
		return visible;
	}
	/**
	 * @param visible the visible to set
	 */
	public void setVisible(boolean visible) {
		this.visible = visible;
	} 
}
